﻿Function Connect-PSCServer
{
	Param([string]$Server =  "localhost", [int]$port = 9000, [string]$upn = "", [switch]$silent)

	$script:PSCServer = @{}
	$script:PSCServer.Server = $Server
	$script:PSCServer.Port = $port
	$script:PSCServer.Upn = $upn
	
	If(-not $silent)
	{
		[PowerShellCron.Client.PSCProxy]::Ping($script:PSCServer.Server, $script:PSCServer.Port, $script:PSCServer.Upn)
	}
}


Export-ModuleMember -Alias * -Function *-*